/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class khachHangPOJO implements Serializable
{
    private String maKhachHang;
    private String email;
    private String hoTen;
    private String matKhau;
    private String maKhuVuc;
    private Date thoiGianDangKi;
    private String creditCard;
    private String dienThoai;
    
    // phuong thuc khoi tao

    public khachHangPOJO(String MaKhachHang, String Email, String HoTen, String MatKhau, String MaKhuVuc, Date ThoiGianDangKi, String CreditCard, String DienThoai) 
    {
        this.maKhachHang = MaKhachHang;
        this.email = Email;
        this.hoTen = HoTen;
        this.matKhau = MatKhau;
        this.maKhuVuc = MaKhuVuc;
        this.thoiGianDangKi = ThoiGianDangKi;
        this.creditCard = CreditCard;
        this.dienThoai = DienThoai;
    }
    
    public khachHangPOJO() 
    {
        this.maKhachHang = null;
        this.email = null;
        this.hoTen = null;
        this.matKhau = null;
        this.maKhuVuc = null;
        this.thoiGianDangKi = new Date();
        this.creditCard = null;
        this.dienThoai = null;
    }
    
    public khachHangPOJO(khachHangPOJO KH) 
    {
        this.maKhachHang = KH.maKhachHang;
        this.email = KH.email;
        this.hoTen = KH.hoTen;
        this.matKhau = KH.matKhau;
        this.maKhuVuc = KH.maKhuVuc;
        this.thoiGianDangKi = KH.thoiGianDangKi;
        this.creditCard = KH.creditCard;
        this.dienThoai = KH.dienThoai;
    }
    
    //phuong thuc get set

    public String getCreditCard() {
        return creditCard;
    }

    public void setCreditCard(String CreditCard) {
        this.creditCard = CreditCard;
    }

    public String getDienThoai() {
        return dienThoai;
    }

    public void setDienThoai(String DienThoai) {
        this.dienThoai = DienThoai;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String Email) {
        this.email = Email;
    }

    public String getHoTen() {
        return hoTen;
    }

    public void setHoTen(String HoTen) {
        this.hoTen = HoTen;
    }

    public String getMaKhachHang() {
        return maKhachHang;
    }

    public void setMaKhachHang(String MaKhachHang) {
        this.maKhachHang = MaKhachHang;
    }

    public String getMaKhuVuc() {
        return maKhuVuc;
    }

    public void setMaKhuVuc(String MaKhuVuc) {
        this.maKhuVuc = MaKhuVuc;
    }

    public String getMatKhau() {
        return matKhau;
    }

    public void setMatKhau(String MatKhau) {
        this.matKhau = MatKhau;
    }

    public Date getThoiGianDangKi() {
        return thoiGianDangKi;
    }

    public void setThoiGianDangKi(Date ThoiGianDangKi) {
        this.thoiGianDangKi = ThoiGianDangKi;
    }
    
    // phuong thuc string.toString tra ve ho ten Khach Hang 

    @Override
    public String toString() {
        return this.hoTen;
    }
    
    
    
    
}
